package filejoiner.util;

import filejoiner.data.DataSheet;
import filejoiner.data.Entry;
import filejoiner.util.DataSheetListener;

/**
 *
 * @author Luis
 */
public class DefaultDataSheetListener implements DataSheetListener {

    @Override
    public void onSplit(DataSheet dataSheet, Entry entry) {
        System.out.println("Parte: " + entry.getName() + " Se creo correctamente con un peso de: " + entry.getFileSize());
    }

    @Override
    public void onSplitError(DataSheet dataSheet, Entry entry) {
        System.err.println("Parte: " + entry.getName() + " Fallo al crear");
    }

    @Override
    public void onUpload(DataSheet dataSheet, Entry entry) {
        System.out.println(entry.getName() + " Se subio correctamente");
    }

    @Override
    public void onUploadError(DataSheet dataSheet, Entry entry) {
        System.err.println(entry.getName() + " Fallo al subir");
    }

    @Override
    public void onDownload(DataSheet dataSheet, Entry entry) {
        System.out.println(entry.getName() + " Se descargo correctamente");
    }

    @Override
    public void onDownloadError(DataSheet dataSheet, Entry entry) {
        System.err.println(entry.getName() + " Fallo al descargar");
    }

    @Override
    public void onMake(DataSheet dataSheet, Entry entry) {
        System.out.println(entry.getName() + " Se unio correctamente");
    }

    @Override
    public void onMakeError(DataSheet dataSheet, Entry entry, Integer error) {
        System.err.println(entry.getName() + " Fallo al unir, ERROR: " + error);
    }
}
